# -*- coding: utf-8 -*-
# @Author	: starview.guojian.ma
# @Date		: 2022/11/1 9:51
# @Last Modified by:   starview.guojian.ma
# @Last Modified time: 2022/11/1 9:51
# Thanks for your comments!

from enum import Enum


class DepartmentCategory(Enum):
    clinical = "1"  # 临床
    administrative = "2"  # 行政
    med_tech = "3"  # 医技
    others = "20"  # 其他


class PersonType(Enum):
    others = 0  # 其他
    pharmacist = 1  # 药师
    doctor = 2  # 医生
    nurse = 3  # 护士


class PersonGender(Enum):
    unknown = "0"  # 未知
    male = "1"  # 男
    female = "2"  # 女


class PersonTitle(Enum):
    """人员职称枚举类，包含职称代码及对应的中英文名称"""
    CHIEF_PHYSICIAN = "1"  # "主任医师", "Chief Physician"
    DEPUTY_CHIEF_PHYSICIAN = "2"  # "副主任医师", "Deputy Chief Physician"
    ATTENDING_PHYSICIAN = "3"  # "主治医师", "Attending Physician")
    RESIDENT_PHYSICIAN = "4"  # "住院医师", "Resident Physician")
    CHIEF_PHARMACEUTIST = "5"  # "主任药师", "Chief Pharmacist")
    DEPUTY_CHIEF_PHARMACEUTIST = "6"  # "副主任药师", "Deputy Chief Pharmacist")
    SENIOR_PHARMACEUTIST = "7"  # "主管药师", "Senior Pharmacist")
    JUNIOR_PHARMACEUTIST = "8"  # "药师（初级）", "Junior Pharmacist")
    PHARMACY_TECHNICIAN = "9"  # "药士", "Pharmacy Technician")
    CHIEF_NURSE = "10"  # "主任护师", "Chief Nurse")
    DEPUTY_CHIEF_NURSE = "11"  # "副主任护师", "Deputy Chief Nurse")
    SENIOR_NURSE = "12"  # "主管护师", "Senior Nurse")
    JUNIOR_NURSE = "13"  # "护师（初级）", "Junior Nurse")
    NURSE = "14"  # "护士", "Nurse")
    OTHER = "-1"  # "其他", "Other")


class MedicineCNWestFlag(Enum):
    # 中西药标识
    WESTERN_MEDICINE = "1"  # 西药
    CHINESE_PATENT_MEDICINE = "2"  # 中成药
    PREPARED_CHINESE_HERBAL_SLICES = "3"  # 中药饮片


class MedicineAntibacterialType(Enum):
    # 抗菌级别
    NON_ANTIBACTERIAL = "0"  # 非抗菌
    NON_RESTRICTED_USE_CATEGORY = "1"  # 非限制使用级
    RESTRICTED_USE_CATEGORY = "2"  # 限制使用级
    SPECIAL_USE_CATEGORY = "3"  # 特殊使用级
